<script>
export default {
    data() {
        return {
            encrypt: null,
            decrypt: null
        };
    },
    methods: {},
    mounted() {
        this.$nextTick(() => {
            // TripleDES 对称 解密
            this.encrypt = function(message) {
                return CryptoJS.TripleDES.decrypt(
                    message,
                    "YusupTurak"
                ).toString(CryptoJS.enc.Utf8);
            };
            // TripleDES 对称 加密
            this.decrypt = function(message) {
                return CryptoJS.TripleDES.encrypt(
                    message,
                    "YusupTurak"
                ).toString();
            };
        });
    }
};
</script>